/********************************** (C) COPYRIGHT *******************************
 * File Name          : main.c
 * Author             : WCH
 * Version            : V1.0.0
 * Date               : 2022/08/18
 * Description        : Main program body.
*********************************************************************************
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
* Attention: This software (modified or not) and binary are used for 
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
*******************************************************************************/

/*******************************************************************************/
/* Header Files */
#include <usbd_keyboard.h>
#include "ch32v30x_usbhs_device.h"
#include "hall_mes.h"
#include "key.h"
#include "timer.h"
#include "serial_led.h"

/*********************************************************************
 * @fn      main
 *
 * @brief   Main program
 *
 * @return  none
 */

int main( void )
{
    /* Initialize system configuration */
	SystemCoreClockUpdate();
	Delay_Init();
    timer_init();

	key_test_main();

//	while( 1 )
//    {
//	    if( USBHS_DevEnumStatus )
//	    {
//	        /* Handle keyboard scan data */
////	        KB_Scan_Handle(  );
//	    }
//    }
}
